package com.itheima.seven;

public class Manager extends Employee {
    private String bonus;

    public Manager() {
        this.bonus = bonus;
    }

    public Manager(String name, String id, String salary, String bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public String getBonus() {
        return bonus;
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("姓名为:"+super.getName()+",工号为:"+super.getId()+
                ",工资为:"+super.getSalary()+",奖金为:"+bonus+"的项目经理正在管理程序员写代码");
    }
}
